export const formComponentConfig = {
  selectLike: () =>
    import('@/views/purchase-demand/components/formComp/selectLike.vue'),
  supplyName: () => import('@/common/components/search-modal/supplyName.vue'),
  inputModal: () => import('@/common/components/search-modal/input-modal.vue'),
  dictSelect: () => import('@/common/components/dict-select/index.vue'),
};

export const formRenderConfig = {
  billNo: {
    label: '变更单号',
    field: 'billNo',
    componentName: 'input',
  },
  orderNo: {
    label: '订单编号',
    field: 'orderNo',
    componentName: 'input',
  },
  contractNo: {
    label: '商务合同编号',
    field: 'contractNo',
    componentName: 'input',
  },
  mdsItemCodeNew: {
    label: '物料编号',
    field: 'mdsItemCodeNew',
    componentName: 'inputModal',
    componentProps: {
      title: '物料编号',
      type: 'materialCode',
      labelName: 'materialCode',
      valueName: 'materialCode',
    },
  },
  mdsItemNameNew: {
    label: '物料名称',
    field: 'mdsItemNameNew',
    componentName: 'input',
  },

  // mdsVendorNameNew: {
  //   label: '供应商名称',
  //   field: 'mdsVendorNameNew',
  //   componentName: 'supplyName',
  // },
  mdsVendorNameNew: {
    label: '供应商名称',
    field: 'mdsVendorNameNew',
    componentName: 'inputModal',
    componentProps: {
      title: '供应商名称',
      type: 'materialCode',
      labelName: 'supplierName',
      valueName: 'supplierName',
    },
  },
  status: {
    label: '状态',
    field: 'status',
    componentName: 'dictSelect',
    componentProps: {
      allowClear: 'true',
      dictType: 'pmsOrderChangeStatus',
    },
  },
};
